package com.frame.work.service;

import com.frame.work.entity.TblSensirionLog;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * @author wjming
 * @ClassName: TblSensirionLogService
 * @Description: 温湿度传感器日志记录
 * @Date 2021/1/25 13:07
 */
public interface TblSensirionLogService extends IService<TblSensirionLog> {
    /**
     * @Description: 分表保存温湿度传感器日志
     * @param: sensirionLog
     * @return: void
     * @author:wjming
     * @Date:2021/1/25 13:34
     */
    void subTableSaving(TblSensirionLog sensirionLog);

    /**
     * @Description:通过时间查询日志数量
     * @param: pageNum
     * @param: pageSize
     * @param: gatewayMac
     * @param: deviceMac
     * @param: startTime
     * @param: endTime
     * @return: List<TblSensirionLog>
     * @author:wjming
     * @Date:2021/1/25 17:34
     */
    List<TblSensirionLog> selectByTime(Integer pageNum, Integer pageSize, String gatewayMac, String deviceMac, String startTime, String endTime);

    /**
     * @Description:查询当天数据信息
     * @param: gatewayMac
     * @param: deviceMac
     * @return:
     * @author:wjming
     * @Date:2021/1/26 9:55
     */
    List<TblSensirionLog> selectByToday(String gatewayMac, String deviceMac);

    /**
     * @Description:获取某天的数据
     * @param: gatewayMac
     * @param: deviceMac
     * @param: time
     * @return:
     * @author:wjming
     * @Date:2021/1/26 15:06
     */
    List<TblSensirionLog> selectByDay(String gatewayMac, String deviceMac, long time);
}
